package com.zbkj.crmeb.enums;

/**
 * 功能描述: 海带云快递代码转化
 * @Author: wangzh
 * @Date: 2022/11/11 10:34
 */
public enum ExpressTransition {
    JIAJIWULIU("jiaji", "jiajiwuliu"),
    BAISHIHUITONG("huitong", "huitongkuaidi"),
    QUANFENGKUAIDI("quanfeng", "quanfengkuaidi"),
    DEBANGWULIU("debang", "debangwuliu"),
    GUOTONGKUAIDI("guotong", "guotongkuaidi"),
    ANNENG("anneng", "annengwuliu"),
    KUAIJIE("kuaijie", "kuaijiesudi"),
    DEZHONGWULIU("decnlh", "dezhong"),
    YUANCHENGWULIU("yuancheng", "yuanchengwuliu"),
    SUER("sure", "suer"),
    JIXIANGYOU("jxy", "jixiangyouau"),
    YIDATONG("yidatong", "qexpress"),
    KAHANGTIANXIA("B2B", "kahang"),
    HELAN("Sky", "postnlpacle"),
    PCAQUANQIU("pca", "pcaexpress"),
    CHENGGUANGKUAIDI("chengguang", "chengguangkuaidi"),
    BAISHIWULIU("bsky", "baishiwuliu"),
    FANGZHOUKUAID("arke", "arkexpress"),
    WANJIAWULIU("wanjia", "wanjiawliu"),
    XINBANGWULIU("xinbang", "xinbangwuliu"),

    JINGDONGKUAID("jd", "jd"),
    SHUNFENGSUYUN("shunfeng", "shunfeng"),
    YUANTONG("yuantong", "yuantong"),
    EMS("ems", "ems"),
    SHENTONG("shentong", "shentong"),
    YUNDA("yunda", "yunda"),
    ZHONGTONGKUAIDI("zhongtong", "zhongtong")

    ;
    private String code;
    private String value;

    ExpressTransition(String code, String value) {
        this.code = code;
        this.value = value;
    }

    public String getCode() {
        return code;
    }

    public String getValue() {
        return value;
    }

    public static ExpressTransition getValueByCode(String code){
        if (code != null){
            for (ExpressTransition value : ExpressTransition.values()){
                if (value.code.equals(code)){
                    return value;
                }
            }
        }
        return null;
    }

}
